/*rD9tEt0y+UZGyeFDnAyKC4azb0MIvaPPS7jYn2ib9umx6O9r0PhvlTP+x/jARGOE*/
/*
 * @Author: xiahui 
 * @PageInfo: 付款计划 
 * @Date: 2019-03-14 10:35:38 
 * @Last Modified by: xiahui
 * @Last Modified time: 2019-07-10 15:53:20
 */
import { AREA, FIELDS } from '../../constance';
import { showWarningInfo } from '../../../../../scmpub/scmpub/pub/tool/messageUtil';
import { getLangByResId } from '../../../../../scmpub/scmpub/pub/tool/multiLangUtil';

export default function(props) {
	let checkedRows = props.table.getCheckedRows(AREA.listTableId);
	if (!checkedRows || checkedRows.length < 1) {
		showWarningInfo(null, getLangByResId(this, '4004PURDAILY-000058')); /* 国际化处理： 请选择数据*/
		return;
	}

	props.openTo(null, {
		appcode: '400400608',
		pagecode: '400400608_list',
		pk_org: JSON.stringify(checkedRows[0].data.values[FIELDS.pk_org]),
		vbillcode: checkedRows[0].data.values[FIELDS.vbillcode].value
	});
}

/*rD9tEt0y+UZGyeFDnAyKC4azb0MIvaPPS7jYn2ib9umx6O9r0PhvlTP+x/jARGOE*/